package com.sumainfor.wx.system.feign;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.system.fallback.FeignEpcFallback;
import com.sumainfor.wx.system.fallback.FeignGmioFallback;
import com.sumainfor.wx.system.feign.EpcFeign.EpcFeign;
import com.sumainfor.wx.system.feign.GmioFeign.GmioFeign;
import feign.Feign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: meng
 * @Date: 2019/1/18 15:59
 * @Description:
 */
@FeignClient(name = "TANGNEST-PC-GMIO", fallback = FeignGmioFallback.class)
public interface BaseFeignGmio extends GmioFeign {

//    /**
//     *查询房源的水电燃收费标准
//     */
//    @GetMapping("/director/DiChargesDept/getChargesDept")
//    JsonResult getChargesDept(@RequestParam Map<String,Object> params);
//
//
//    /**
//     *服务管家退租的时候查询上次的水表抄表数
//     */
//    @GetMapping("/secretary/HoEleMeter/getHoEleMeter")
//    JsonResult getHoEleMeter(@RequestParam Map<String,Object>params);


    /**
     *服务管家退租的时候查询上次的水表抄表数
     */
    @GetMapping("/secretary/HoWaterMeter/getHoWaterMeterLast")
    JsonResult getHoWaterMeterLast(@RequestParam Map<String,Object>params);


    /**
     *服务管家退租的时候查询上次的燃气抄表数
     */
    @GetMapping("/secretary/HoGasMeter/getHoGasMeterLast")
    JsonResult getHoGasMeterLast(@RequestParam Map<String,Object>params);


    /**
     * 租赁顾问新签合同时抄水电燃表
     * @param params
     * @return
     */
    @PostMapping("/housekeeper/HoTenant/addHoWegMeter")
    JsonResult addHoWegMeter(@RequestBody Map<String,Object> params);
}
